package org.one.stone.soup.db.indexing;

import java.util.ArrayList;
import java.util.List;

public class SetCombiner {

	public static List<Long> findCommonSet(List<Long> latitudeSet,
			List<Long> longitudeSet) {
		
		List<Long> result = new ArrayList<Long>();
		
		for(Long entryA: latitudeSet) {
			for(Long entryB: longitudeSet) {
				if(entryA == entryB) {
					result.add(entryA);
				}
			}
		}
		
		return result;
	}

}
